import { Injectable } from '@angular/core';
import { BaseHttpService } from './base-http.service';
import { Observable } from 'rxjs/internal/Observable';

@Injectable({
	providedIn: 'root'
})
export class UserAuthService {
	private readonly COMM_URL = `/login`;

	constructor(private http: BaseHttpService) {};
	login(loginUser: {openId: string, token: string}): Observable<any> {
		return this.http.get(`${this.COMM_URL}/login?openId=${loginUser.openId}`);
	}
}
